import Vue from "vue";
import VueStorage from "vue-ls";
import "./plugins/axios";
import App from "./App.vue";
import bootstrap from "./core/bootstrap";

import "./permission";
import router from "./router/index";
import store from "./store/";

import "./plugins/base";
import "./plugins/vee-validate";
import vuetify from "./plugins/vuetify";
import VuetifyDialog from "vuetify-dialog";
import "vuetify-dialog/dist/vuetify-dialog.css";
import request from "./api/http.js";
import "./common";

// 这里注册全局的样式
import "./sass/vuetify-material/_form.sass";
import "./sass/vuetify-material/_view.sass";

import "echarts";
import ECharts from "vue-echarts";
Vue.component("v-chart", ECharts);

Vue.config.productionTip = false;
Vue.prototype.request = request;
Vue.use(VueStorage, {
  namespace: "pro__", // key prefix
  name: "ls", // name variable Vue.[ls] or this.[$ls],
  storage: "local", // storage name session, local, memory
});

Vue.use(VuetifyDialog, {
  context: {
    vuetify,
  },
  confirm: {
    icon: true,
    width: 350,
  },
  //property: "$dialog", // 这里可以自定义弹出框的全局属性名
});

new Vue({
  router,
  store,
  vuetify,
  created: bootstrap,
  render: (h) => h(App),
}).$mount("#app");
